package com.ddpt.platform.common.limit;

import java.util.HashMap;
import java.util.Map;

public abstract class BaseLimitCreator<T extends LimitDefinition<?>> {

    protected final Map<String,Object> variables = new HashMap<>();

    public abstract void addVariable(T definition);

    //执行校验逻辑前会调用此方法
    public void beforeVerify(){}

    public Map<String, Object> getVariables() {
        return variables;
    }
}
